﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Twodi.Aspect.Interfaces;
using Twodi.Interfaces;
using Twodi.Aspect.Implemented;
using Twodi.Behavior.Implemented;
using Twodi.Behavior.Interfaces;
using Microsoft.Xna.Framework;
using Twodi.Implemented;

namespace Twodi.Screen
{
    /// <summary>
    /// ContainerComponent principal de componentes.
    /// </summary>
    public class Screen : AbstractManagedContainer<IGameComponent>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="game"></param>
        public Screen(Game game)
            : base(game)
        {
            //Position:
            DefineSize();
        }

        protected virtual void DefineSize()
        {
            this.Size = new Vector2(Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height);
        }
    }
}
